#include <iostream>
using std::cout;
using std::endl;

namespace wd
{
int num = 100;

void func(){
    cout << "func" << endl;
}

namespace cpp
{
int num = 200;

void func(){
    cout << "cpp::func" << endl;
}
}//end of namespace cpp

}//end of namespace wd


void test(){
    //想要访问cpp里面的number
    cout << wd::cpp::num << endl;
}

void test2(){
    using namespace wd::cpp;
    cout << num << endl;
}

void test3(){
    using wd::cpp::num;
    cout << num;
}

int main()
{
    test3();
    return 0;
}

